﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="evepctlib" %>

<script runat="server">

    protected void Button1_Click(object sender, EventArgs e)
    {
    	HttpReader httpReader = new HttpReader("http://eve-metrics.com/api/item.xml?type_ids=1230&region_ids=10000033");
    	Literal1.Text = httpReader.Read();
    }
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Page d'accueil
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="form1" runat="server">
    <h2><%: ViewData["Message"] %>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
        <br />
        <asp:Literal ID="Literal1" runat="server"></asp:Literal>
    </h2>
    <p>
        Pour en savoir plus sur ASP.NET MVC, visitez <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.
    </p>
    </form>
</asp:Content>
